[DEPRECATED] Use form field endpoints instead. Creates a new custom field option from provided data
curl --request POST \
--url https://api.rootly.com/v1/custom_fields/{custom_field_id}/options \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "custom_field_options",
"attributes": {
"value": "<string>",
"color": "<string>",
"default": true,
"position": 123
}
}
}'
{
"data": {
"id": "3",
"type": "custom_field_options",
"attributes": {
"custom_field_id": 127,
"value": "Test option value",
"color": "#FBE4A0",
"default": false,
"position": 3,
"updated_at": "2025-07-31T05:01:27.622-07:00",
"created_at": "2025-07-31T05:01:27.622-07:00"
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
custom_field_option created
The response is of type object
.
curl --request POST \
--url https://api.rootly.com/v1/custom_fields/{custom_field_id}/options \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "custom_field_options",
"attributes": {
"value": "<string>",
"color": "<string>",
"default": true,
"position": 123
}
}
}'
{
"data": {
"id": "3",
"type": "custom_field_options",
"attributes": {
"custom_field_id": 127,
"value": "Test option value",
"color": "#FBE4A0",
"default": false,
"position": 3,
"updated_at": "2025-07-31T05:01:27.622-07:00",
"created_at": "2025-07-31T05:01:27.622-07:00"
}
}
}